<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="jakarta.tags.core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <base href="${ctx}/">
    <title>后台管理系统-登录</title>
    <script src="assets/lib/jquery/jquery-3.4.1.js"></script>

    <%--引入layui--%>
    <link rel="stylesheet" href="assets/lib/layui/css/layui.css">
    <script src="assets/lib/layui/layui.js"></script>

    <%--自定义css及js--%>
    <link rel="stylesheet" href="assets/modules/login/login.css">
    <script>
        const ctx = "${ctx}";
    </script>
    <script src="assets/modules/login/login.js"></script>
</head>
<body>
<div class="login">
    <div class="header">
        <h1>教学教务管理系统</h1>
    </div>
    <div class="body">
        <form id="login-form" action="">
            <div class="row">
                <label for="username">用户名:</label>
                <input id="username" name="username" type="text" placeholder="请输入用户名" autocomplete="off" value="admin0">
            </div>
            <div class="row">
                <label for="password">密码:</label>
                <input id="password" name="password" type="password" placeholder="请输入密码" autocomplete="off" value="123456">
            </div>
            <div class="row">
                <label for="captcha">验证码:</label>
                <div>
                    <input id="captcha" name="captcha" type="text" placeholder="请输入验证码" autocomplete="off">
                    <img id="captcha-img" src="admin/captcha" alt="captcha">
                </div>
            </div>
        </form>
        <button id="login-btn">登录</button>
    </div>
</div>
</body>
</html>
